---
title: "fields · RUAL Documentation"
description: "Runs the given function per field for easier validation. By default it makes a field required. Function return values can be condition, value (error)"
canonical: https://docs.rual.nl/block-types/http connection/httpconnection_fieldvalidation
language: en
---

# fields

This block is part of the [`http connection`](https://docs.rual.nl/block-types/http%20connection) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Fields Selection Required

This block relies on fields that you selected to perform its data actions. You must manually select the fields you want to use in your flow using the fields selector modal. To access the modal, click the white button on the block.

### Field Selection Required

This block requires field selection (in). You must manually select the fields you want to work with using the field selector modal. To access the modal, click the white button on the block.

Runs the given function per field for easier validation. By default it makes a field required. Function return values can be `condition, value (error)`

- flow `flow`

- connection required `httpconnection`

- flow `flow`

- connection `httpconnection`

- valid `condition` Returns true if all valed

- fields `array` All fields that returned an error

- errors `array` All errors as returned by the running functions.

A typical wiring for [fields](https://docs.rual.nl/block-types/http%20connection/httpconnection_fieldvalidation): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the fields block: typical wiring for fields.](https://docs.rual.nl/canvas-examples/httpconnection_fieldvalidation.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
